//
//  IPBToken.h
//  ZYWebImage
//
//  Created by wangzhipan on 2025/4/27.
//

#ifndef IPBToken_h
#define IPBToken_h

#import <Foundation/Foundation.h>
#import "GPBMessage.h"

typedef void(^ZYPBCompletedBlock)(GPBMessage* _Nullable  responseObj,  NSError * _Nullable error);

@protocol IPBToken <NSObject>
@property (nonatomic, assign, readonly) BOOL isCanceled;
- (void)cancel;
- (BOOL)isRespondToMaxType:(uint32_t)maxType minType:(uint32_t)minType;
@end


static NSString * _Nonnull PBKeyForType(uint32_t maxType, uint32_t minType)
{
    return [NSString stringWithFormat:@"%d_%d", maxType, minType];
}

#endif /* IPBToken_h */
